<%-- 
    Document   : login
    Created on :  21:54:45
    Author     : ccp <568093091@qq.com>
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="front/css/home-page.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/userInformation.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/jquery.mCustomScrollbar.css"/>
        <script src="front/js/jquery-1.11.2.js"></script>
        <script src="front/js/jquery.mCustomScrollbar.concat.min.js"></script>
        <script src="front/js/home-page.js"></script>
        <script src="front/js/borrowInformation.js"></script>
        <title>用户信息</title>
    </head>
    <body class="all-page borrowInformation">
        <jsp:include page="/WEB-INF/admin/head.jsp"></jsp:include>
            <div class="borrowPanel">
                <p class="title">用户信息</p>
                <div class="scrollContent">
                    <table>	
                        <thead>
                            <tr><th>用户姓名</th><th>操作</th></tr>
                        </thead>
                    <c:forEach items="${users}" var="user" varStatus="s">
                        <tr>
                            <td>${user.userName}</td>
                            <td>
                                <form class="deleteUser" action="deleteUser.do" method="post">
                                    <input type="hidden" name="userId" value="${user.id}"/>
                                    <c:if test="${user.isAdmin==0}">
                                        <input class="deleteInput" type="submit"  value="删除" />
                                    </c:if>
                                    <c:if test="${user.isAdmin==1}">
                                        <input class="deleteInput" type="button"  value="不可删除" disabled="true"/>
                                    </c:if>
                                </form>
                                <form class="updateUser" action="updateUser.do" method="post">
                                    <input type="hidden" name="userId" value="${user.id}"/>
                                    <input type="submit"  value="修改" />
                                </form>

                            </td>
                        </tr>
                    </c:forEach>
                </table>				
            </div>
        </div>
        <div class="conformTip">
            <p>确认执行该操作？</p>
            <div class="buttonAdujust">
                <button class="yes">确认</button>
                <button class="cancel">取消</button>
            </div>
        </div>
        <div class="mask"></div>
    </body>
</html>

